from rest_framework import serializers

from .models import Activity


# 活动列表页序列化器
class ActivityListSerializer(serializers.ModelSerializer):
    class Meta:
        model = Activity
        fields = ["id", "name", "cover", "city", "start_time", "status"]

